import React from 'react';
import {BrowserRouter  , Route ,Redirect , Switch} from 'react-router-dom'
import Login from '../components/login/Login'
import SildeBar from '../components/sildeBar/SildeBar'

const RouterLink= () =>(
<BrowserRouter >
  <Switch> 
    <Route  path='/' exact component={Login}/>
    <Route  path='/nav1' exact component={SildeBar}/>
    <Redirect to=''/>
  </Switch>
</BrowserRouter >)

export default RouterLink